home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS18.ADF
/
Logo
/
logo.6
< prev
next >
Wrap
Text File
|
1989-01-27
|
736b
|
31 lines
;
;some moire patterns.
;
to moirex :sx :sy :dxs :dxf :dy
if :dxs > :dxf [moirex :sx :sy :dxf :dxs :dy stop]
rp (:dxf-:dxs)/4 [pu setpos [:sx :sy] pd setpos [:dxs :dy]
make "dxs :dxs+4]
pu setpos [:sx :sy]
end
to moirey :sx :sy :dx :dys :dyf
if :dys >:dyf [moirey :sx :sy :dx :dyf :dys stop]
rp (:dyf-:dys)/2 [pu setpos [:sx :sy] pd setpos [:dx :dys]
make "dys :dys+2]
pu setpos [:sx :sy]
end
;
;notice how I use a dummy procedure to declare some global variables.
;
to setglobals :gx :gy end
to demo
make "gx xpos
make "gy ypos
cs moirex :gx+50 :gy 0 600 0
moirey :gx+50 :gy 600 0 180
moirex :gx+50 :gy 0 600 180
moirey :gx+50 :gy 0 0 180
end